using System.Collections.Generic;
using System.Threading.Tasks;
using cmdb.keede.common;
using cmdb.keede.entity;

namespace cmdb.keede.service
{
    public interface IBusinessInfoService
    {
        Task<BizResult<List<BusinessInfo>>> GetBusinessInfosAsync(int pageIndex, int pageSize);

        Task<BizResult<List<BusinessInfo>>> GetBusinessInfosAsync(int environmentInfoId);

        Task<List<BusinessInfo>> GetAllBusinessInfosAsync();

        Task<BizResult<BusinessInfo>> GetBusinessInfoAsync(int id);

        Task<BizResult<bool>> DeleteBusinessInfoAsync(int id);

        Task<BizResult<bool>> AddOrUpdateBusinessInfoAsync(BusinessInfo business);
    }
}